package tianrun.ziguan.api.calculate.config.config.influxdb;//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "spring.influx.dynamic")
public class DynamicInfluxDbProperties {
    private Map<String, InfluxDbProperties> datasource = new LinkedHashMap<>();
    private int connectTimeout;
    private int readTimeout;

    public int getReadTimeout() {
        return readTimeout;
    }

    public DynamicInfluxDbProperties setReadTimeout(int readTimeout) {
        this.readTimeout = readTimeout;
        return this;
    }


    public int getConnectTimeout() {
        return connectTimeout;
    }

    public DynamicInfluxDbProperties setConnectTimeout(int connectTimeout) {
        this.connectTimeout = connectTimeout;
        return this;
    }

    public Map<String, InfluxDbProperties> getDatasource() {
        return datasource;
    }

    public DynamicInfluxDbProperties setDatasource(Map<String, InfluxDbProperties> datasource) {
        this.datasource = datasource;
        return this;
    }
}
